﻿namespace SaxParser
{
    using System;
    using System.Collections.Generic;

    /// <summary>
    /// Arguments for event ElementStart
    /// </summary>
    public class ElementStartEventArgs : EventArgs
    {
        #region Constructors

        public ElementStartEventArgs(string tag, List<KeyValuePair<string, string>> attributes)
        {
            m_TagName = tag;
            m_Attributes = attributes;
        }

        #endregion

        #region Properties

        public string TagName
        {
            get { return m_TagName; }
        }

        public List<KeyValuePair<string, string>> Attributes
        {
            get { return m_Attributes; }
        }

        #endregion

        #region Fields

        private readonly string m_TagName = default(string);
        private readonly List<KeyValuePair<string, string>> m_Attributes = new List<KeyValuePair<string, string>>();

        #endregion
    }
}
